Namespaces

Functions

string
__(string $string, array $placeholders = [])

Shortcut for translator translate method

at line 12
abort(int $code, string|null $message = null)

Stops the code execution and sends an HTTP response code

at line 260
abort_if(bool $condition, int $code, string|null $message = null)

Stops the code execution and sends an HTTP response code if $condition

at line 291
array
array_to_object(array $data)

Converts an array to object

at line 122
mixed
config(string $key = "", mixed $default = null)

Get a value from a confing in the "config" folder

at line 202
array
content_of(string $path)

Get contents of a directory

at line 17
csrf_input()

Prints the csrf input

at line 62
string|null
csrf_token()

Get current csrf token

at line 54
array
dom_element_attributes(DOMElement $element)

Gets the attributes of a DOMElement

at line 33
mixed
dot_notation_array(string $key, array $array, mixed $default = null)

Access items of an array using dot notation

at line 135
string
env_var(string $key = "", mixed $default = null)

Shortcut for \App\System\Env::get() method

at line 342
string
generate_html_attributes(array $attributes)

Converts an array to attributes string

at line 166
string
get_absolute_path(string $path)

This works like realpath but works even if the file doesn't exist

at line 215
string
get_contents(string $url)

file_get_contents with simulated user agent

at line 55
string
get_json_error(array $array)

Gets the last json error as readable string

at line 320
array
kvsort(array $array, $key, $order = SORT_ASC)

Sorts array by key value kv = key value

at line 307
method_input(string $method)

Prints the method input

at line 71
string
minify_css(string $css)

Minify the given CSS

at line 186
module_view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::module

at line 22
array
object_to_array(mixed $item)

Converts an object to array

at line 105
pretty(mixed $var)

Prints a detailed description of $var

at line 37
string
public_path(string $path = "")

Get an absolute path from public folder

at line 251
recursive_copy(string $source, string $dest)

Makes a recursive copy of the contents of source path to destination path

at line 86
RedirectResponse
redirect(string $url, array|null $data = [], int|null $code = 302, array|null $headers = [])

Redirect to the given URL, optionally flashing data to the session.

at line 36
request()

Shortcut for \App\System\Http\ServerRequest::get() method

at line 8
string
root_path(string $path = "")

Get an absolute path from root folder

at line 240
router()

Get the singleton instance of the Router.

at line 19
string
url(string $name, array $parameters = [])

Generate a URL for a named route.

at line 10
Validator
validator(...$args)

Shortcut for validator

at line 10
view(string $filename, array $args = [])

Helper for \App\System\MVC\View\View::get

at line 10